/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.mechanism;
import edu.wpi.first.wpilibj.Victor;
/**
 *
 * @author 8352
 */
public class BridgeArm extends Victor {
    public BridgeArm(int slot, int channel) {
        super(slot, channel);
    }
    public BridgeArm(int channel) {
        super(channel);
    }
    public void raisearm() {
        set(-1);
        while (getPosition() > 0.05) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException ex) {
            }
        }
    }
    public void lowerarm() {
        set(1);
        while (getPosition() < 0.95) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException ex) {
            }
        }
    }
}
